Page({
  onLoad () {
    this.getNoticeList()
    // wx.utils.toast()
  },
  data: {
    noticeList: []
  },
  async getNoticeList () {
    const data = await wx.http.get('/announcement')
    // console.log(data)
    if (data.code !== 10000) return wx.utils.toast(data.message)

    this.setData({ noticeList: data.data })
  }
})
